import { createRouter, createWebHashHistory } from 'vue-router'
const routers = [
    {
        path: '/',
        meta: { title: '' },
        name: '首页',
        component: () => import('../../web/index.vue'),
        children: [
            { path: '/', name: '首页', meta: { title: '首页', hidden: false, icon: 'icon-yonghuguanli_huaban' }, component: () => import('../../web/visit/home.vue'), children: [] },
            {
                path: '/config',
                name: '便捷开发',
                meta: { title: '便捷开发', hidden: false, icon: 'system-changyong_wenjian' },
                component: () => import('../../web/config/index.vue'),
                children: [
                    { path: '/color', name: 'web安全色', meta: { title: 'web安全色' }, component: () => import('../../web/config/color.vue'), children: [] },
                    { path: '/component', name: '组件代码', meta: { title: '表单生成' }, component: () => import('../../web/config/component.vue'), children: [] },
                    { path: '/robot', name: '页面模板', meta: { title: '页面模板' }, component: () => import('../../web/config/robot.vue'), children: [] },
                    { path: '/fast', name: '字典查询', meta: { title: '字典查询' }, component: () => import('../../web/config/fast.vue'), children: [] },
                    { path: '/format', name: '格式化', meta: { title: '格式化' }, component: () => import('../../web/config/format.vue'), children: [] },
                    { path: '/bookmark', name: 'API书签', meta: { title: 'API书签' }, component: () => import('../../web/config/bookmark.vue'), children: [] },
                ],
            },
        ],
    },
    { path: '/ddLogin', name: 'ddLogin', meta: { title: 'ddLogin' }, component: () => import('../../web/login/ddLogin.vue'), children: [] },
]
export default createRouter({
    history: createWebHashHistory(),
    routes: routers,
})
